
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>导购员班次设置</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>
   
    </style>

</head>

<body class="white-bg animated fadeIn" style="padding: 3px;font-size: 13px;overflow-x:auto">
     <div class="page-heade">
          <h2 class="title_color text-center">导购员班次设置</h2>
    </div>
    <form action="" class="form-inline" id="form1" method="post">
     <table class="table table-bordered text-center table-striped table-hover row-margin-top bud_hei">
        <tr class="info">
          <td>No.</td>
          <td>是否显示</td>
          <td>显示顺序</td>
          <td>班次名称</td>
          <td>上下班时间段</td>
          <td>班次应上班时长</td>
          <td>是否正常班次</td>
          <td>最后修改时间</td>
          <td>最后修改人</td>
          <td>说明</td>
        </tr>
        <tr>
          <td>1</td>
          <td><input type="checkbox" value="0" name="" id="" checked></td>
          <td><input type="text" name="" id="" style="width: 40px" value="1" class="form-control"></td>
          <td><input type="text" name="" id="" style="width: 120px" value="早班" class="form-control"></td>
          <td><input type="text" name="" id="time1" style="width: 70px" class="form-control daytime" value="">--<input type="text" name="" id="time11" style="width: 70px" class="form-control daytime" value=""></td>
          <td><input type="text" name="" id="" value="8.0" class="form-control"></td>
          <td>
            <label for="isOk1">
              <input type="radio" name="is_ok1" id="isOk1" checked value="1">是
            </label>
            <label for="isNo1">
              <input type="radio" name="is_ok1" id="isNo1" value="0">否
            </label>
          </td>
          <td>2017-08-02 10:08</td>
          <td>吕红英</td>
          <td><input type="text" name=""  value="早期的鸟儿有虫吃..." class="form-control"></td>
        </tr>
         <tr>
          <td>2</td>
          <td><input type="checkbox" value="0" name="" id="" checked></td>
          <td><input type="text" name="" id="" style="width: 40px" value="2" class="form-control"></td>
          <td><input type="text" name="" id="" style="width: 120px" value="中班" class="form-control"></td>
          <td><input type="text" name="" id="time2" style="width: 70px"  class="form-control daytime" value="">--<input type="text" name="" id="time21" style="width: 70px" class="form-control daytime" value=""></td>
          <td><input type="text" name="" id="" value="8.0" class="form-control"></td>
          <td>
            <label for="isOk2">
              <input type="radio" name="is_ok2" id="isOk1" checked value="1">是
            </label>
            <label for="isNo2">
              <input type="radio" name="is_ok2" id="isNo1" value="0">否
            </label>
          </td>
          <td>2017-08-02 10:08</td>
          <td>吕红英</td>
          <td><input type="text" name=""  value="早期的鸟儿有虫吃..." class="form-control"></td>
        </tr>
           <tr>
          <td>3</td>
          <td><input type="checkbox" value="0" name="" id="" checked></td>
          <td><input type="text" name="" id="" style="width: 40px" value="3" class="form-control"></td>
          <td><input type="text" name="" id="" style="width: 120px" value="休息" class="form-control"></td>
          <td><input type="text" name="" id="time3" style="width: 70px"  class="form-control daytime" value="">--<input type="text" name="" id="time31" style="width: 70px" class="form-control daytime" value=""></td>
          <td><input type="text" name="" id="" value="" class="form-control"></td>
          <td>
            <label for="isOk3">
              <input type="radio" name="is_ok3" id="isOk3" checked value="1">是
            </label>
            <label for="isNo3">
              <input type="radio" name="is_ok3" id="isNo3" value="0">否
            </label>
          </td>
          <td>2017-08-02 10:08</td>
          <td>吕红英</td>
          <td><input type="text" name=""  value="" class="form-control"></td>
        </tr>
          <tr>
          <td>4</td>
          <td><input type="checkbox" value="0" name="" id="" checked></td>
          <td><input type="text" name="" id="" style="width: 40px" value="4" class="form-control"></td>
          <td><input type="text" name="" id="" style="width: 120px" value="早晚班" class="form-control"></td>
          <td><input type="text" name="" id="time4" style="width: 70px"  class="form-control daytime" value="">--<input type="text" name="" id="time41" style="width: 70px" class="form-control daytime" value=""></td>
          <td><input type="text" name="" id="" value="" class="form-control" value="8.0"></td>
          <td>
            <label for="isOk4">
              <input type="radio" name="is_ok4" id="isOk4" checked value="1">是
            </label>
            <label for="isNo4">
              <input type="radio" name="is_ok4" id="isNo4" value="0">否
            </label>
          </td>
          <td>2017-08-02 10:08</td>
          <td>吕红英</td>
          <td><input type="text" name=""  class="form-control" value="早期的鸟儿有虫吃..."></td>
        </tr>
          <tr>
          <td>5</td>
          <td><input type="checkbox" value="0" name="" id="" checked></td>
          <td><input type="text" name="" id="" style="width: 40px" value="5" class="form-control"></td>
          <td><input type="text" name="" id="" style="width: 120px" value="未命名" class="form-control"></td>
          <td><input type="text" name="" id="time5" style="width: 70px"  class="form-control daytime" value="">--<input type="text" name="" id="time51" style="width: 70px" class="form-control daytime" value=""></td>
          <td><input type="text" name="" id="" value="" class="form-control" value="8.0"></td>
          <td>
            <label for="isOk5">
              <input type="radio" name="is_ok5" id="isOk5" checked value="1">是
            </label>
            <label for="isNo5">
              <input type="radio" name="is_ok5" id="isNo5" value="0">否
            </label>
          </td>
          <td>2017-08-02 10:08</td>
          <td>吕红英</td>
          <td><input type="text" name=""  class="form-control" value="勾选是否显示后，可启用该班次"></td>
        </tr>
     </table>

     <div class="padding-10 text-danger">
      <p>说明：</p>
      <p style="padding: 3px 0 3px 26px">1.系统已默认设置休息班次。</p>
      <p style="padding: 3px 0 3px 26px">2.“是否正常班次”如选“是”则认为该班次是正常计算销售的班次，“所有（或所属）导购月销量统计”中的“正常班次”以此为依据进行统计，同时会影响该统计表的“日均销售金额”（该报表的“日均销售金额”计算公式为：月销售金额÷正常班次数量）;“休息”班次默认为不属于“正常班次”. </p>
       <p style="padding: 3px 0 3px 26px">3.班次显示顺序只能填写数字，手机端在排班时点击班次，默认的显示顺序按照填写的数字从小到大向下排序。</p>
     </div>
     <div class="text-center padding-10">
          <button class="btn btn-success" type="submit">保存</button>
     </div>
    </form>
  
   
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
  <script src="__STATIC__/layout/js/plugins/laydate/laydate.js"></script>

  <script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
   
    $(document).ready(function () {
        var $input = $("table tbody tr td").find("input");
        $input.each(function(){
           if($(this).val()=="休息"){
            $(this).attr("readonly","readonly");
            $(this).parent().siblings("td").find("input[type='radio']").attr("disabled","disabled")
            $(this).parent().siblings("td").find("input[type='checkbox']").attr("disabled","disabled")
            $(this).parent().siblings("td").find("input[type='text']").attr("readonly","readonly")
          }
        })
      
    })   

$(".daytime").each(function(){
  laydate.render({
    elem: this,
    type:'time',
    format: 'HH:mm',
    trigger: 'click'
  });
}); 
</script>
</body>

</html>